import {SelectOption} from "naive-ui";

export class PageQuery<T> {
    page: number = 1;
    size: number = 10;
    param: T;

    constructor(param: T) {
        this.param = param;
    }
}

export class PageResult<T> {
    page: number = 1;
    total: number = 0;
    data: Array<T> = [];
}

export class EnumOptionStore {
    UserAuth?: SelectOption[];
    ScheduleRatio?: SelectOption[];
    JobCycle?: SelectOption[];
}

export class EnumMapStore {
    [key: string]: Map<number, string>;
}

export interface CommonObject {
    [key: string]: any
}
